import Vue from 'vue'
import App from './views'
// Vant组件全局引入
import Vant from 'vant'
import 'vant/lib/index.css'
Vue.use(Vant)
// 加载全局样式文件
import GlobalComponent from './components'
import './style/index.less'
// 引入路由组件并全局注入
import router from './router'
// 引入状态管理器实例对象并全局注入
import store from './store'
Vue.use(GlobalComponent)
new Vue({
  // 全局注入
  store,
  router,
  render: c => c(App)
}).$mount('#root')
